@charset "UTF-8";

/* ───────────────────────
   アドベントカレンダー設定
─────────────────────── */

.hidden {
  display: none;
}

.pending {
  max-width: 1160px;
  margin: 100px auto;
  text-align: right;
  font-size: 22px;
  color: #aaa;
  font-weight: 300;
}

@media (max-width: 768px) {
  .pending {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .pending {
    font-size: 18px;
  }
}

/* ───────────────────────
   全体設定
─────────────────────── */

/* ヘッダーとタイトルのあいだの余白 */
main {
  margin-top: 200px;
}

@media (max-width: 768px) {
  main {
    margin-top: 194px;
  }
}

@media (max-width: 480px) {
  main {
    margin-top: 154px;
  }
}

/* 見出しフォントサイズ */
h2 {
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.05rem;
  margin-bottom: 8px;
}

h3 {
  font-weight: 300;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.05rem;
}

h4 {
  font-weight: 600;
  margin-bottom: 8px;
}

h5 {
  font-weight: 500;
  text-align: right;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.28rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.08rem;
  }
}

/* ───── br-for-mobile
（小タブレット・モバイルだけ改行）───── */
.br-for-mobile {
  display: none;
}

@media (max-width: 768px) {
  .br-for-mobile {
    display: inline;
  }
}

/* ──────────────────────────────
   全要素ボックスサイズ border-box
────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ──────────────────────────────
   タブ周り
────────────────────────────── */
.tab-wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  font-family: "Noto Serif JP", serif;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  /* 3カラム横並び */
  background: #f7f7f7;
  margin-top: 100px;
  font-family: "Noto Serif JP", serif;
}

.tab {
  position: relative;
  text-align: center;
  padding: 12px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 16px;
  font-family: "Noto Serif JP", serif;
}

/* セパレーター（2つ目、4つ目の左に1px線） */
.tab:nth-child(2)::after,
.tab:nth-child(4)::after {
  content: "";
  position: absolute;
  top: 25%;
  bottom: 25%;
  left: 0;
  width: 1px;
  background: #ddd;
}

/* アクティブタブ */
.tab.active {
  background: #fff;
  color: #333;
}

/* タブ内容エリア */
.tab-content {
  display: none;
  margin-top: 100px;
  text-align: center;
  background: #fff;
  width: 100%;
  font-family: "Noto Serif JP", serif;
}

.tab-content.active {
  display: block;
}

/* ─── レスポンシブ ─── */
@media (max-width: 768px) {
  .tabs {
    margin-top: 70px;
  }

  .tab-content {
    margin-top: 70px;
  }

}

@media (max-width: 480px) {
  .tabs {
    margin-top: 60px;
  }

  .tab {
    font-size: 14px;
  }

  .tab-content {
    margin-top: 60px;
  }
}

/* ──────────────────────────────
  キャプション
────────────────────────────── */
.caption-section_view {
  max-width: 1160px;
  margin: 100px auto 20px auto;
}

.caption-section_view img {
  display: block;
  margin: 0 auto;
}


.caption-section_view h5 {
  text-align: right;
  margin-top: 0;
  font-weight: 500;
}

.caption-section {
  margin: 120px auto 120px auto;
}

@media (max-width: 768px) {
  .caption-section {
    margin: 100px auto 100px auto;
  }
}

@media (max-width: 480px) {
  .caption-section {
    margin: 80px auto 80px auto;
  }
}

/* ──────────────────────────────
  外部リンク装飾（↗）
────────────────────────────── */
a.ext-link {
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: border-color 0.2s, opacity 0.2s;
}

a.ext-link:hover {
  border-bottom-color: #707f89;
  opacity: 0.7;
}

a.ext-link::after {
  content: "↗";
  font-size: 0.85em;
  margin-left: 4px;
  vertical-align: baseline;
}

/* ──────────────────────────────
スペシャルティ：リンクカード（1枚もの相当）
────────────────────────────── */

.specialties-linkgrid__card {
  max-width: 1100px;
  margin: 80px auto;
}

/* カード全体をリンク化 */
.specialties-linkgrid__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 画像 */
.specialties-linkgrid__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト領域（左寄せ、枠） */
.specialties-linkgrid__body {
  border: 1px solid #e5e5e5;
  padding: 28px 24px 40px;
  text-align: left;
}

/* メタや本文（左寄せ） */
.specialties-linkgrid__meta {
  color: #707f89;
  margin: 8px 0 12px;
}

.specialties-linkgrid__title {
  margin: 18px 0 10px;
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
}

.specialties-linkgrid__excerpt {
  font-size: 16px;
  margin: 20px auto 28px;
  max-width: 46em;
}

/* ── ボタン（「ふかく知る」） ── */
.specialties-linkgrid .specialties-linkgrid__button {
  /* 形と配置 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 24px auto 0;
  border-radius: 0;

  /* 見た目 */
  gap: .5em;
  padding: .6rem 1.2rem;
  border: var(--border-w, 1px) solid var(--accent, #aaa);
  background: transparent;
  font-weight: 300;
  letter-spacing: .03em;
  line-height: 1.25;
  font-size: 16px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .05s ease;
}

/* PCホバー時の軽いフィードバック */
@media (hover:hover) {
  .specialties-linkgrid .specialties-linkgrid__link:hover .specialties-linkgrid__button {
    background: rgba(0, 0, 0, .04);
    background: color-mix(in oklab, var(--accent, #707f89) 8%, white);
  }
}

/* キーボード操作の可視フォーカス */
.specialties-linkgrid .specialties-linkgrid__link:focus-visible .specialties-linkgrid__button,
.specialties-linkgrid .specialties-linkgrid__button:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent, #707f89) 30%, white);
  outline-offset: 2px;
  background: color-mix(in oklab, var(--accent, #707f89) 5%, white);
}

/* 余白・レスポンシブ微調整（単体カード） */
@media (max-width: 768px) {
  .specialties-linkgrid {
    justify-items: center;
  }

  .specialties-linkgrid__card {
    max-width: 600px;
    margin: 70px auto;
  }

  .specialties-linkgrid__body {
    padding: 24px 18px 32px;
  }
}

@media (max-width: 480px) {
  .specialties-linkgrid__card {
    margin: 60px auto;
  }

  .specialties-linkgrid__excerpt {
    margin: 18px auto 24px;
    font-size: 14px;
  }
}

/* ──────────────────────────────
アンカー余白（任意：飛び先ページ用）
────────────────────────────── */
:root {
  --anchor-offset: 120px;
}

@media (max-width: 768px) {
  :root {
    --anchor-offset: 110px;
  }
}

@media (max-width: 480px) {
  :root {
    --anchor-offset: 80px;
  }
}

.anchor-target {
  scroll-margin-top: var(--anchor-offset);
}

/* ──────────────────────────────
リンクカード：グリッド配置
────────────────────────────── */
.specialties-linkgrid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  /* 768px以下：1カラム */
  grid-template-columns: 1fr;
  gap: 40px;
  margin-inline: auto;
  /* 左右中央寄せ */
  margin-block-start: 100px;
  margin-block-end: 0;
}

/* 769px以上：2カラム */
@media (min-width: 769px) {
  .specialties-linkgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 余白・レスポンシブ微調整（グリッド全体） */
@media (max-width: 768px) {
  .specialties-linkgrid {
    margin-block-start: 70px;
    margin-block-end: 0;
  }
}

@media (max-width: 480px) {
  .specialties-linkgrid {
    margin-block-start: 60px;
    margin-block-end: 0;
  }
}

/* 2枚目が無いとき用の“空スロット”（高さ増やさない） */
.specialties-linkgrid::after {
  content: "";
  display: block;
  /* グリッドの子要素として1マス占有 */
  height: 0;
}

/* グリッド内カードの余白はgapに任せる */
.specialties-linkgrid .specialties-linkgrid__card {
  margin: 0;
}